<?php

declare(strict_types=1);

namespace App\Amqp\Producer;

use Hyperf\Amqp\Message\ProducerMessage;

class LogsProducer extends ProducerMessage
{
    /**
     * @param $data
     */
    public function __construct($data)
    {
        $this->exchange = env('APP_NAME');
        $this->routingKey = 'backend-rpc-logs';

        $this->payload = $data;
    }
}
